Cookie technology is a very controversial technology, since its inception it has become a vast number of network users and web developersA point of contention. Some Internet users, even some senior web experts, are dissatisfied with its generation
0x00 IntroductionIn the history of Web technology, the advent of cookie technology is a major change. However, Cookie technology is a very controversial technology, from the date it was born into a vast network of users and web developers of a
The similarities and differences between the cookie and session:A. Cookie mechanismCookies are small pieces of text that the server stores on the local machine and are sent to the same server with each request. The IETF RFC 2965 HTTP State
Before I introduce the main body, we'll introduce the basics of cookies
First understand what a cookie is
"Cookies are variables that are stored on the computer of the visitor. This cookie is sent whenever the same computer requests a page through
Session management is an important part of web development, including sessions and cookie two technologies. This chapter describes the creation and use of cookies and sessions.
Cookies:
Cookies are often used to identify users. Cookies are small
There are two methods to process cookies: Server (php, asp, etc.) and client (javascript ). in this tutorial, we will learn how to create cookies through php and javascript. HTTP is a stateless protocol, this means that you are independent of every
1. Set Cookies PHP uses the Setcookie function to set cookies. It is important to note that cookies are part of the HTTP protocol header and are used to pass information between browsers and servers, so you must call the cookie function before any
Describes the differences between cookies and sessions in PHP and the usage summary of cookies and sessions. The differences between cookies and sessions in PHP and the usage of cookies and sessions are described in detail. Specifically,
Objective
We use PHP to develop the background, we need to save some of the data, and we usually do is to save the database, but sometimes we do not need to save in the database, such as when we log on to the Web page, the site to show the last
This article describes how to set, use, and delete cookies in PHP and some restrictions on cookies. PHP supports cookies transparently and conveniently.
1. set Cookie
PHP uses the SetCookie function to set the Cookie. Note that Cookie is a part of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.